import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int m = in.nextInt();
        int n = in.nextInt();
        int c = MaxY(m,n);
        System.out.print(m*n/c);
    }

    public static int MaxY(int m, int n) {
        if (m == n) return m;
        if (m < n) {
            int tmp = m;
            m = n;
            n = tmp;
        }
        int r;
        while ((r = m % n) > 0) {
            m = n;
            n = r;
        }
        return n;
    }
}